package net.sky.oa.dao.system.impl;

import java.util.List;

import net.sky.oa.dao.SkyBaseDaoImpl;
import net.sky.oa.dao.system.MyGroupDao;
import net.sky.oa.model.MyGroup;

import org.springframework.stereotype.Repository;

@SuppressWarnings("unchecked")
@Repository
public class MyGroupDaoImpl extends SkyBaseDaoImpl<MyGroup> implements
		MyGroupDao {
	
	public MyGroupDaoImpl() {
		super.setPersistType(MyGroup.class);
	}

	public List<MyGroup> findAllGroup() {
		String hql = "from MyGroup s";
		return findByHql(hql);
	}
}